﻿package com.riadeveloper.store
{
	public class GetData
	{
		private static var obj:Object= new Object;
		private static var tile0:TileObj = new TileObj;
		private static var tile1:TileObj = new TileObj;
		private static var tile2:TileObj = new TileObj;
		private static var tile3:TileObj = new TileObj;
		private static var tile4:TileObj = new TileObj;
		private static var tile5:TileObj = new TileObj;
		private static var tile6:TileObj = new TileObj;
		private static var tile7:TileObj = new TileObj;
		private static var tile8:TileObj = new TileObj;
		private static var tile9:TileObj = new TileObj;
		private static var tile10:TileObj = new TileObj;
		private static var tile11:TileObj = new TileObj;
		private static var tile12:TileObj = new TileObj;
		
		private static var notSet:Boolean = true;
		
		public static function GetValue(str:String)
		{
			if(notSet)setValue();	
			
			return obj[str];
			
		}
		public static function setValue()
		{
						

			tile0.changeImgArr[0] = {height:40,width:190};
			tile0.changeImgArr[8] = {y:40,height:-40};
			tile0.changeImgArr[9] = {y:40,height:-40};
			tile0.changeImgArr[1] = {x:190,width:-110};
			tile0.changeImgArr[2] = {x:80};
			tile0.changeImgArr[3] = {x:80,width:-80};
			tile0.changeImgArr[5] = {x:190,width:-100};
			tile0.changeImgArr[6] = {x:90,width:-90 };
			
			
			tile1.textBoxPos = "right";
			tile1.changeImgArr[1] = {x:-170,width:170,height:40};

			tile1.changeImgArr[0] = {width:-170,imgX:-360};			
			tile1.changeImgArr[6] = {y:40,height:-20};
			tile1.changeImgArr[5] = {y:40,height:-20};
			tile1.changeImgArr[9] = {y:20,height:-20};
			tile1.changeImgArr[10] = {y:20,height:-20};
			

			tile2.textBoxPosH = "right";			
			tile2.textBoxPos = "right";
			
			tile2.changeImgArr[2] = {height:40,x:-200,width:200};
			tile2.changeImgArr[1] = {x:-100,width:-100};
			tile2.changeImgArr[0] = {width:-100,imgX:-260};
			tile2.changeImgArr[5] = {y:40,height:-40};
			tile2.changeImgArr[6] = {y:40,height:-40};
			
			
			tile3.textBoxPosH = "right";
			tile3.textBoxPos = "right";
			tile3.changeImgArr[3] = {x:-190,width:190,height:40};
			tile3.changeImgArr[7] = {y:40,height:-40};			
			tile3.changeImgArr[0] = {width:-120,imgX:-280};
			tile3.changeImgArr[9] = {width:-120};
			tile3.changeImgArr[1] = {x:-120,width:-70};
			tile3.changeImgArr[2] = {x:-190};
			tile3.changeImgArr[6] = {x:-120,width:-70};
			tile3.changeImgArr[5] = {x:-120};
	
			

			tile4.textBoxPosH = "right";			
			tile4.textBoxPos = "right";
			tile4.changeImgArr[4] = {x:-190,width:190,height:40};
			tile4.changeImgArr[7] = {y:40,height:-40};			
			tile4.changeImgArr[0] = {width:-120,imgX:-300};
			tile4.changeImgArr[3] = {x:-180,width:-10};
			tile4.changeImgArr[9] = {width:-120};
			tile4.changeImgArr[1] = {x:-120,width:-60};
			tile4.changeImgArr[2] = {x:-180};
			tile4.changeImgArr[6] = {x:-120,width:-60};
			tile4.changeImgArr[5] = {x:-120};
			
			tile5.changeImgArr[5] = {width:190,height:40};
			tile5.changeImgArr[6] = {x:190,width:-70};
			tile5.changeImgArr[9] = {y:40,height:-40};
			tile5.changeImgArr[3] = {x:120,width:-80};
			tile5.changeImgArr[4] = {x:40,width:-40};
			tile5.changeImgArr[7] = {x:120,width:-120,imgX:-250};	


			tile6.textBoxPosH = "right";			
			tile6.textBoxPos = "right";
			tile6.changeImgArr[6] = {x:-190,width:190,height:40};
			tile6.changeImgArr[10] = {y:40,height:-40};
			tile6.changeImgArr[0] = {width:-140,imgX:-320};
			tile6.changeImgArr[8] = {width:-100};
			tile6.changeImgArr[12] = {width:-100};
			tile6.changeImgArr[9] = {x:-100,width:-90};
			tile6.changeImgArr[5] = {x:-140,width:-50};

			tile7.textBoxPosH = "right";			
			tile7.textBoxPos = "right";
			tile7.changeImgArr[7] = {x:-190,width:190,height:40};
			tile7.changeImgArr[10] = {height:-40,y:40};
			tile7.changeImgArr[11] = {height:-40,y:40};			
			tile7.changeImgArr[6] = {x:-170,width:-20};
			tile7.changeImgArr[0] = {width:-120,imgX:-280};
			tile7.changeImgArr[8] = {width:-110};
			tile7.changeImgArr[12] = {width:-110};
			tile7.changeImgArr[9] = {x:-110,width:-60};
			tile7.changeImgArr[5] = {x:-120,width:-50};
			
			tile8.textBoxPosV = "bottom";
			tile8 .textBoxPos = "bottom";
			tile8.changeImgArr[8] = {y:-100,width:40,height:140};
			tile8.changeImgArr[9] = {x:40,width:-40};
			tile8.changeImgArr[12] = {y:40,height:-40};			
			tile8.changeImgArr[0] = {height:-100};

			
			tile9.textBoxPosV = "bottom";
			tile9.changeImgArr[9] = {y:-40,width:190,height:40};
			tile9.changeImgArr[5] = {height:-40};
			tile9.changeImgArr[0] = {height:-40};			
			tile9.changeImgArr[6] = {x:190,width:-90};
			tile9.changeImgArr[7] = {x:100,width:-100,imgX:-250};
			tile9.changeImgArr[3] = {x:100,width:-100};
			tile9.changeImgArr[10] = {x:190,width:-160,imgX:-300};
			tile9.changeImgArr[11] = {x:30,width:-30,imgX:-100};


			tile10.textBoxPosV = "bottom";
			tile10.textBoxPosH = "right";			
			tile10.textBoxPos = "right";
			tile10.changeImgArr[10] = {x:-190,y:-40,width:190,height:40};
			tile10.changeImgArr[6] = {height:-40};
			tile10.changeImgArr[7] = {height:-40};
			tile10.changeImgArr[9] = {x:-110,width:-80};
			tile10.changeImgArr[8] = {width:-110};
			tile10.changeImgArr[12] = {width:-110};
			
			
			tile11.textBoxPosV = "bottom";
			tile11.textBoxPosH = "right";			
			tile11.textBoxPos = "bottom";
			tile11.changeImgArr[11] = {x:-40,y:-150,width:40,height:150};
			tile11.changeImgArr[10] = {width:-40};			
			tile11.changeImgArr[3] = {height:-100};
			tile11.changeImgArr[4] = {height:-100};
			tile11.changeImgArr[7] = {y:-100,height:-50};
			
			tile12.textBoxPosV = "bottom";
			tile12.changeImgArr[12] = {y:-40,width:190,height:40};
			tile12.changeImgArr[8] = {height:-40};			
			tile12.changeImgArr[9] = {x:190,width:-100};
			tile12.changeImgArr[6] = {x:90,width:-90};
			tile12.changeImgArr[10] = {x:90,width:-90,imgX:-200};
			
			
			obj["tile0"] = tile0;
			obj["tile1"] = tile1;
			obj["tile2"] = tile2;
			obj["tile3"] = tile3;
			obj["tile4"] = tile4;
			obj["tile5"] = tile5;
			obj["tile6"] = tile6;
			obj["tile7"] = tile7;
			obj["tile8"] = tile8;
			obj["tile9"] = tile9;
			obj["tile10"] = tile10;
			obj["tile11"] = tile11;
			obj["tile12"] = tile12;
			
			notSet = false;
			
		}
		
	}
}